/**
 * Created by 84995 on 2020/1/15.
 */
public class test8 {

    public static void main(String[] args) {


        int[] arr={88,96,97,74,90,58,77,90,99};

        int i = get(arr);
        System.out.println("去掉一个最低分的平均数为："+i);
    }

    public static int get(int [] arr){

        int min=arr[0];
        for (int i = 0; i <arr.length ; i++) {
            if (min>arr[i]){
                min=arr[i];
            }
        }

        System.out.println(min);

        int sum=0;
        for (int i = 0; i <arr.length ; i++) {
            if (min==arr[i]){
                continue;
            }
            sum+=arr[i];
        }
   return sum/arr.length; }


}
